POV-Ray : Newsgroups : povray.advanced-users : Strange (undesireable) effect : Strange (undesireable) effect Server Time
29 Jul 2024 20:13:15 EDT (-0400)
  Strange (undesireable) effect  
From: Michael Sobers
Date: 20 Jan 2001 15:33:31
Message: <3a69f61b@news.povray.org>
Can anyone tell me what's causing the transparent cylinders containing the
media to show up black when viewed through the semi-transparent spheres?  I
couldn't get the bug worked out prior to entering it into the IRTC animation
contest.  By the way, some of the entries are really good this round -
they're worth checking out!  I put the code at the end in case that helps.

Thanks for the help!
- Mike Sobers

"Here's your problem - your Kalman filter's all gunked up.  We'll have to
replace it with a clean one." - me, after my linear control systems final


Here's the code for the media:

#declare laser2 = media {
  emission 1.5
  intervals 5
  samples 1, 10
  confidence 0.9999
  variance 1/1000
  density {
    cylindrical
    ramp_wave
    turbulence 0.3
    color_map {
      [0.0 color rgb <0, 0, 0>]
      [0.05 color rgb <0.3, 0.0, 0>]
      [0.8 color rgb <1, 0.1, 0.1>]
      [1.0 color rgb <1, 0.2, 0.2>]
    } scale 0.35
  } rotate 90*x
}

And here's the code for the shields.

#declare SHIELD_GLOW = texture {
   pigment {
     wrinkles
     turbulence .6
     octaves 3
     lambda 3
     omega 0.4
     color_map {
      [0 color rgbt <1, 0.6, 1, 1>]
      [0.56 color rgbt <1, 0.5, 1, .9>]
      [0.56 color rgbt <1, 0.5, 1, 0.7>]
      [0.60 color rgbt <0.5, 0.5, 1, 0.7>]
      [0.64 color rgbt <1, 0.5, 1, 0.7>]
      [0.64 color rgbt <1, 0.5, 1, 0.9>]
      [1 color rgbt <1, 0.6, 1, 1>]
     }
     scale 10 translate <0,0,10*My_Clock>
   }
   finish { diffuse 0 ambient 1 }
}

#declare shield1 = difference {
    sphere { 0 12 scale <1,0.5,1.5> translate <0,1,-1> texture
{ SHIELD_GLOW }}
    sphere { 0 12 scale 0.97*<1,0.5,1.5> translate <0,1,-1> texture
 SHIELD_GLOW }}
    box {<-12.01,-5.01,17.01-36.02*shield_coverage> <12.01,7.01,-19.01>
      texture

        pigment { color rgbt <0.7,0.7,1,0.4> }
        finish { ambient 1 diffuse 0 }
      }
    }
    hollow on
    no_shadow
}


Post a reply to this message


Attachments:
Download 'Pursu331.jpg' (13 KB)

Preview of image 'Pursu331.jpg'
Pursu331.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.